package com.gzhryc.net_marketing.core.enums;

public class CloudPayAccountEnum {

    public enum BusinessType {

        GoodsOrderPay("商品订单支付"),VirtualCurrencyExchange("虚拟币兑换");

        private String note;

        BusinessType(String note) {
            this.note = note;
        }

        public String note() {
            return note;
        }
    }

    public enum SettlementType {

        PayeeRequest(1, "收款方请求结算");

        private Integer index;
        private String note;

        SettlementType(Integer index, String note) {
            this.index = index;
            this.note = note;
        }

        public Integer index() {
            return index;
        }

        public String note() {
            return note;
        }

        public static String note(Integer index) {
            SettlementType[] temp = SettlementType.values();
            for (int i = 0; i < temp.length; i++) {
                SettlementType item = temp[i];
                if (item.index.equals(index)) {
                    return item.note;
                }
            }
            return null;
        }
    }
}
